package com.worklog.model;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@Getter
@NoArgsConstructor
@Table(name = "role")
public class Role implements Serializable{
    private static final long serialVersionUID = -6140090613812307452L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Column(name = "role_desc")
    private String roledesc;
    
    @Transient
    private Integer selected;
    
    @Transient
    private List<User> userList;
    
    @Transient
    private String productIds;
    
    @Transient
    private String menuIds;
    
    @Column(name = "create_time")
    private Timestamp createTime;
    
    @Column(name = "update_time")
    private Timestamp updateTime;
}